<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>振宇汽车美容商城-管理员端</title>
    <link rel="stylesheet" href="m_admin.css" />
    <link rel="shortcut icon" href="../images/favicon1.ico" />
</head>
<body>
<div class="box">
	<div class="top">
		
		<div class="nav">
			<a href="sadd.php">添加商品</a>
		</div>
	</div>
	<div class="main">
		<table class="admin-list">
			<tr>
				<th>商品名</th>
				<th >当前价格</th>
				<th >商品原价</th>
				<th >商品图片</th>
				<th >商品描述</th>
				<th >商品分类</th>
				<th >操作</th>
			</tr>
			
			<!-- 只显示10条 -->
					<?php foreach($data as $key => $value){?>
			<tr>
				<td class="center"><strong><?=$value[1]?></strong></td>
				<td class="center"><?=$value[2]?></td>
				<td class="center"><?=$value[3]?></td>
				<td class="center"><?=$value[4]?></td>
				<td class="center"><?=$value[5]?></td>
				<td class="center"><?=$value[8]?></td>
				<td class="center">
					<a href="sedit.php?id=<?=$value[0]?>">编辑</a>
					<a href="sdelete.php?id=<?=$value[0]?>">删除</a>
				</td>
			</tr>
			<?php }?>
						
		</table>
		<table class="tb_two">
						<tr>
							<td><a href="?page=1">【首页】</a></td>
							<td><a href="?page=<?=$total_page?>">【尾页】</a></td>
							<td><a href="?page=<?=$pre_page?>">上一页</a></td>
							<td><a href="?page=<?=$page?>"><?=$page?></a></td>
							<td><a href="?page=<?=$page_1?>"><?=$page_1?></a></td>
							<td><a href="?page=<?=$page_2?>"><?=$page_2?></a></td>
							<td><a href="?page=<?=$page_3?>"><?=$page_3?></a></td>
							<td><a href="?page=<?=$next_page?>">下一页</a></td>
						</tr>
					</table>
	</div>
</div>
</body>
</html>